package com.mowh.multithreading.read.write.lock;

/**
 * @author mowh1gd
 * @create 2023/11/21 17:15
 */
public class Main {
    public static void main(String[] args) {
//        Data data = new RawData(10);
        Data data = new ReentrantData(10);
        new ReaderThread(data).start();
        new ReaderThread(data).start();
        new ReaderThread(data).start();
        new ReaderThread(data).start();
        new ReaderThread(data).start();
        new ReaderThread(data).start();
        new WriterThread(data, "ABCDEFGHIJKLMNOPQRSTUVWXYZ").start();
        new WriterThread(data, "abcdefghijklmnopqrstuvwxyz").start();
    }
}
